docs: Small updates
authorMatthias Clasen <mclasen@redhat.com>
Fri, 13 Jul 2018 08:06:10 +0000 (10:06 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 Jul 2018 08:13:00 +0000 (10:13 +0200)
Remove a few references to no-longer-existing APIs.

gdk/gdkcursor.c
gdk/gdksurface.c

index 1964d4fd595e408dac99a23fe268a10e1328a496..be3dca2e9885334dab8aa32a9203d90a82a6984d 100644 (file)
  * the commonly available names that are shared with the CSS specification.
  * Other names may be available, depending on the platform in use.
  * Another option to create a cursor is to use gdk_cursor_new_from_texture()
- * and provide an image to use for the cursor. Depending on the #GdkDisplay
- * in use, the type of supported images may be limited. See
- * gdk_display_supports_cursor_alpha(),
- * gdk_display_supports_cursor_color(),
- * gdk_display_get_default_cursor_size() and
- * gdk_display_get_maximal_cursor_size() for the limitations that might apply.
+ * and provide an image to use for the cursor.
  *
  * To ease work with unsupported cursors, a fallback cursor can be provided.
  * If a #GdkSurface cannot use a cursor because of the reasons mentioned above,
@@ -346,18 +341,6 @@ gdk_cursor_new_from_name (const gchar *name,
  *
  * Creates a new cursor from a #GdkTexture.
  *
- * Not all GDK backends support RGBA cursors. If they are not
- * supported, a monochrome approximation will be displayed.
- * The functions gdk_display_supports_cursor_alpha() and
- * gdk_display_supports_cursor_color() can be used to determine
- * whether RGBA cursors are supported;
- * gdk_display_get_default_cursor_size() and
- * gdk_display_get_maximal_cursor_size() give information about
- * cursor sizes.
- *
- * On the X backend, support for RGBA cursors requires a
- * sufficently new version of the X Render extension.
- *
  * Returns: a new #GdkCursor.
  */
 GdkCursor *
index 7348ce1fe87b08975a239a3f8a92ee392eb1bb5c..bb9785a0a57cf0eb99be5cba95f39e0a9157523e 100644 (file)
@@ -2917,7 +2917,7 @@ gdk_surface_get_cursor (GdkSurface *surface)
  *
  * Note that @cursor must be for the same display as @surface.
  *
- * Use gdk_cursor_new_for_display() or gdk_cursor_new_from_texture() to
+ * Use gdk_cursor_new_from_name() or gdk_cursor_new_from_texture() to
  * create the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR.
  * Passing %NULL for the @cursor argument to gdk_surface_set_cursor() means
  * that @surface will use the cursor of its parent surface. Most surfaces
@@ -3004,7 +3004,7 @@ gdk_surface_get_device_cursor (GdkSurface *surface,
  * @cursor: a #GdkCursor
  *
  * Sets a specific #GdkCursor for a given device when it gets inside @surface.
- * Use gdk_cursor_new_for_display() or gdk_cursor_new_from_texture() to create
+ * Use gdk_cursor_new_fromm_name() or gdk_cursor_new_from_texture() to create
  * the cursor. To make the cursor invisible, use %GDK_BLANK_CURSOR. Passing
  * %NULL for the @cursor argument to gdk_surface_set_cursor() means that
  * @surface will use the cursor of its parent surface. Most surfaces should